from rest_framework import serializers

from gathering.models import Gathering

class GatheringListserializer(serializers.ModelSerializer):
    users = serializers.PrimaryKeyRelatedField(read_only=True,many=True)
    class Meta:
        model = Gathering
        fields = '__all__'



class GatheringDetailserializer(serializers.ModelSerializer):

    class Meta:
        model = Gathering
        fields = '__all__'